<?php

include 'captain-lufy.php';

// 直接用完整命名空间路径引用里面的方法
Cartoon\OnePiece\Lufy\sayHi();

// 同 use Cartoon\OnePiece\Lufy as Lufy;
use Cartoon\OnePiece\Lufy;
Lufy\sayHi();

use Cartoon\OnePiece\Lufy as Lu;
Lu\sayHi();

// 可以给命名空间内的类起别名
use Cartoon\OnePiece\Lufy\Hobby as Hob;
$hob = new Hob();
$hob->add('running');
$hob->show();